<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/6/9
 * Time: 10:37
 */

namespace app\applet\controller;


use app\share\model\Token;

class Payment
{

    /**
     * 用户的收藏，粉丝，消息等相关接口
     */

    public function __construct(){

        $this->Notify=new \app\applet\model\Notify();
        $this->Payment=new \app\applet\model\Payment();
        $this->token=new Token();
    }

    /**
     * 支付回调
     */
    public function nodify($input){
        $this->Notify->order($input);

    }
    public function success(){

        $input=input();


        $returnData=$this->Payment->orderSuccess($input) ;
        returnJson(200,'success',$returnData);

    }

    public function transfer(){
        $input=input();
        $this->Notify->transfer($input);
    }
}